CC=g++
CFLAGS=-c -Wall
LDFLAGS=-lpthread
SOURCES=Communicator.cpp ConfigReader.cpp logger.cpp Router.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=router

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

clean:
	rm -rf *o router
